<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"      
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">

<h:head>
	<title>Header</title>
</h:head>
      
<h:body>
	<p:dataTable var="categoryName" rowKey="#{categoryName}" selectionMode="single" value="#{mainCategoryBean.categoryNames}" selection="#{mainCategoryBean.selectedName}">
	    <p:column id="model">
	        <h:outputText value="#{mainCategoryBean.categoryNames[0]}" />
	    </p:column>
	    <p:column id="type">
	        <h:outputText value="#{mainCategoryBean.categoryNames[1]}" />
	    </p:column>
	</p:dataTable>

</h:body>
</html>
                    